#ifndef __CLIENT_COMM_H_
#define __CLIENT_COMM_H_

#include "messages.h"

int sendall(int fd, int len, char *buf);

int recvall(int fd, int len, char *buf);

int sendMessageLC(int fd, MessageLC *message);

int sendMessageLS(int fd, MessageLS *message);

MessageCL *recvMessageCL(int fd);

MessageSL *recvMessageSL(int fd);

#endif
